import { defHttp } from '@/utils/request';

export function getCodeApi(data) {
  return defHttp.post({
    url: '/api/sms/send',
    data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  });
}

export function loginApi(data) {
  return defHttp.post({
    url: '/api/index/login',
    data,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  });
}
